home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / psetting / pseval.exe / _SETUP.1 / Options.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1997-10-17  |  985 b   |  50 lines

  1. unit Options;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   PSetting, StdCtrls;
  8.  
  9. type
  10.   TfrmOptions = class(TForm)
  11.     Label1: TLabel;
  12.     Button1: TButton;
  13.     Button2: TButton;
  14.     frmsOptions: TPFormSettings;
  15.     dlgColor: TColorDialog;
  16.     procedure Button1Click(Sender: TObject);
  17.     procedure Button2Click(Sender: TObject);
  18.   private
  19.     { Private declarations }
  20.   public
  21.     { Public declarations }
  22.   end;
  23.  
  24. var
  25.   frmOptions: TfrmOptions;
  26.  
  27. implementation
  28.  
  29. uses DataMod;
  30.  
  31. {$R *.DFM}
  32.  
  33. procedure TfrmOptions.Button1Click(Sender: TObject);
  34. begin
  35.     dlgColor.Color := Label1.Font.Color;
  36.     if ( dlgColor.Execute = TRUE ) then
  37.     begin
  38.         Label1.Font.Color := dlgColor.Color;
  39.     end;
  40. end;
  41.  
  42. procedure TfrmOptions.Button2Click(Sender: TObject);
  43. begin
  44.     {dtmMain.appsMain['Font Color'].AsInteger := Label1.Font.Color;}
  45.     frmsOptions.UpdateToAppSettings; 
  46.     Close;
  47. end;
  48.  
  49. end.
  50.